﻿@using Resources;
@{
    Layout = "~/Views/Shared/Layaout/reporte/_LayoutReporte.cshtml";
}
<script type="text/javascript">
    $(function () {
        calendarioGeneral('fecIniVig', '0');
        calendarioGeneral('fecFinVig', '1');
        setAutoAyudaEmpresa("#idePersona", "#codPaisDoc", "#tipoDocum", "#NumDocum", "#vNombresPersona", "/AutoAyuda/ListaPersonaAuto", "1");
        setAutoAyudaEmpresa("#idePersona", "#codPaisDoc", "#tipoDocum", "#vNombresPersona", "#NumDocum", "/AutoAyuda/ListaPersonaAuto", "2");
        inicioPopPupModal("#poPup", 400, 750, "LISTADO DE PERSONAS ENCONTRADAS");
    });
</script>
<script type="text/javascript" src="@Url.Content(@properties.reporteJS)" ></script>
<input xtype="hidden" id="idePersona" />
<input type="hidden" id="codPaisDoc" />
<input type="hidden" id="tipoDocum" />
<div id="tituloOpcion">@ViewBag.TITULO</div>
<div id="divCabeceraInterno">
<table style="width: 100%;" class="tblCab" border="1">
    <thead>
        <tr>
            <th>
                <select id="tipoPersona" name="tipoPersona" onchange="javascript:changeDataSource(this);">
                    <option value="1">PERSONA NATURAL</option>
                    <option value="2">PERSONA JURIDICA</option>
                </select>
            </th>            
            <th>Núm. Doc.</th>
            <th>:</th>
            <th>@Html.TextBox("NumDocum", null, new { style = "width:60px;", maxlength = 10 })</th>
            <th>Nombres</th>
            <th>:</th>
            <th>@Html.TextBox("vNombresPersona", null, new {style = "width:200px;", maxlength = 120 }) <img src="@Url.Content("~/images/buscar.gif")" class="lupita2" alt="CONSULTAR PERSONA" onclick="javascript:buscarPersonaReporte('#poPup','#idePersona', '#codPaisDoc', '#tipoDocum', '#NumDocum', '#vNombresPersona');"/></th>
            <th>Fecha Inicio<span class="asterisco">(*)</span></th>
            <th>:</th>
            <th>@Html.TextBox("fecIniVig", null, new {maxlength = 10, @Value="01/01/2013" })</th>
            <th>Fecha Fin<span class="asterisco">(*)</span></th>
            <th>:</th>
            <th>@Html.TextBox("fecFinVig", null, new {maxlength = 10 })</th>
            <th><input type="button" value="Consultar" onclick="javascript: listarBusquedaAvanzada('#divDetalle');" /></th>
        </tr>
    </thead>
</table>
</div>
<div id="divDetalle"></div>
<div id="poPup"></div>